package io.geekidea.boot.insurancePolicy.dto;


import com.baomidou.mybatisplus.annotation.TableField;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class InsurancePolicyDto implements Serializable {
    private static final long serialVersionUID = 1L;


    private Integer id;

    @TableField("orderType")
    private String orderType; //订单类型

    @TableField("orderNo")
    private String orderNo; //订单号

    @TableField("bwdId")
    private Integer bwdId; //保外单类型

    @TableField("factoryOrderNo")
    private String factoryOrderNo; //厂家单号

    @TableField("engineerId")
    private Integer engineerId; //工程师

    @TableField("materialSum")
    private String materialSum; // 合计物料数量

    @TableField("costPriceSum")
    private Double costPriceSum; //合计成本价

    @TableField("practicalMoney")
    private Double practicalMoney; //合计实收金额

    @TableField("receivableMoney")
    private Double receivableMoney; //合计应收金额

    @TableField("discountsMoney")
    private Double discountsMoney; //合计优惠金额

    @TableField("indirectCost")
    private Double indirectCost; //合计间接成本

    @TableField("compensation")
    private Double compensation; //合计有偿

    @TableField("grossProfit")
    private Double grossProfit; //合计毛利

    @TableField("clientName")
    private String clientName; //客户姓名

    @TableField("clientPhoneNumber")
    private Double clientPhoneNumber; //手机号码

    @TableField("payMoney")
    private Double payMoney; //支付金额

    @TableField("payId")
    private String payId; //收款方式（支付方式）

    @TableField("preparedBy")
    private Long preparedBy; //制单人

    @TableField("storeId")
    private Integer storeId; //门店名称

    @TableField("areaId")
    private Integer areaId; //战区名称

    @TableField("auditStatus")
    private String auditStatus; //审核状态

    @TableField("orderStatus")
    private String orderStatus; //订单状态

//    @TableField("auditId")
//    private Integer auditId;


    @TableField("wlTypeDetails")
    private String wlTypeDetails; //物料详情

    @TableField("engineerCommission")
    private Double engineerCommission; //工程师提成金额


    @TableField("out_trade_no")
    private String out_trade_no; //订单号

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    @TableField("makeOrderTime")
    private LocalDateTime makeOrderTime; //制单时间

    @TableField("roleName")
    private String roleName; //角色名称

    @TableField("remark")
    private String remark; //备注

}
